﻿@model ProductDetailsModel.ProductVariantModel.ProductVariantPriceModel
@using Nop.Web.Models.Catalog;
@using Nop.Core.Domain.Catalog;
@using Nop.Core.Infrastructure;
@using Nop.Core;
@using System.Text;
@using System.Globalization;
@using Nop.Services.Customers;
@using System.Text.RegularExpressions;
<div class="prices">
    @if (Model.CustomerEntersPrice)
    {
        /*display nothing*/
    }
    else if (Model.CallForPrice)
    {
        <span class="product-price">@T("Products.CallForPrice")</span>
    }
    else
    {
        if (!String.IsNullOrWhiteSpace(Model.OldPrice))
        {
        @T("Products.Price.OldPrice")<text>:</text>
        <span class="old-product-price">@Model.OldPrice</span>
        <br />
        }
        if (!String.IsNullOrWhiteSpace(Model.OldPrice) ||
            !String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
        {
        @T("Products.Price")<text>:</text>
        }
        
        
        <span 
        @if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
        {
            <text>class="product-price"</text>
        }
        >
            @Html.Raw(Model.Price)
        </span>
        
        
        
        if (!String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
        {
        <br />
        @T("Products.Price.WithDiscount")<text>:</text>
        <span class="product-price">
            @Html.Raw(Model.PriceWithDiscount)
        </span>
        }
    }
</div>
